<template>
  <lazy-component class="zui-lazy-component">
    <slot></slot>
  </lazy-component>
</template>

<script>
export default {
  name: 'z-lazy'
}
</script>

<style lang="less">
@import "../z-theme/_variable.less";

.zui-lazy-component {
  // position: relative;
  // background-color: transparent;
  // width: auto;
  // height: auto;
  // transition: @--all-transition;
}

.zui-lazy-component[lazy=loading] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: @--background-color-base;
  // opacity: 0;
}

.zui-lazy-component[lazy=loaded] {
  transition: @--all-transition;
}
</style>
